package com.centit.dtjktxlog.po;

import java.util.Date;
import java.sql.Timestamp;
import javax.persistence.Column;


import javax.persistence.Id;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


/**
 * create by scaffold 2020-04-03 
 * @author codefan@sina.com
 
  T_JDDT_DTJKTXLOGT_JDDT_DTJKTXLOG【动态监控提醒日志表】   
*/
@Entity
@Table(name = "T_JDDT_DTJKTXLOG")
public class JddtDtjktxlog implements java.io.Serializable {
	private static final long serialVersionUID =  1L;



	/**
	 * REC_ID 主键id 
	 */
	@Id
	@Column(name = "REC_ID")
	
	private String recId;

	/**
	 * AIR_ID AIR_ID【飞机id】 
	 */
	@Column(name = "AIR_ID")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  airId;
	/**
	 * JKSX_ID JKSX_ID【监测事项】 
	 */
	@Column(name = "JKSX_ID")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  jksxId;
	/**
	 * JC_STATUS JC_STATUS【监测状态】 
	 */
	@Column(name = "JC_STATUS")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  jcStatus;
	/**
	 * CL_STATUS CL_STATUS【处理状态】 
	 */
	@Column(name = "CL_STATUS")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  clStatus;
	/**
	 * DQ_DATE DQ_DATE【到期时间】 
	 */
	@Column(name = "DQ_DATE")
	private Date  dqDate;
	/**
	 * ZDTX_TIME ZDTX_TIME【自动提醒次数】 
	 */
	@Column(name = "ZDTX_TIME")
	private Long  zdtxTime;
	/**
	 * SCTX_DATE SCTX_DATE【首次提醒时间】 
	 */
	@Column(name = "SCTX_DATE")
	private Date  sctxDate;
	/**
	 * ZJTX_DATE ZJTX_DATE【最近一次提醒时间】 
	 */
	@Column(name = "ZJTX_DATE")
	private Date  zjtxDate;
	/**
	 * RGTX_TIME RGTX_TIME【人工提醒次数】 
	 */
	@Column(name = "RGTX_TIME")
	private Long  rgtxTime;
	/**
	 * RGTX_DATE RGTX_DATE【最近一次提醒时间】 
	 */
	@Column(name = "RGTX_DATE")
	private Date  rgtxDate;
	/**
	 * SYDAY SYDAY【剩余天数】 
	 */
	@Column(name = "SYDAY")
	private Long  syday;
	/**
	 * TX_TYPE TX_TYPE【提醒方式】 
	 */
	@Column(name = "TX_TYPE")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  txType;
	/**
	 * DATA_VALID DATA_VALID 
	 */
	@Column(name = "DATA_VALID")
	@Length(min = 0, max = 1, message = "字段长度不能小于{min}大于{max}")
	private String  dataValid;
	/**
	 * INS_USERCODE INS_USERCODE 
	 */
	@Column(name = "INS_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  insUsercode;
	
	/**
	 * ALARM_Y【提醒时间区间】 黄色预警
	 */
	@Column(name = "ALARM_Y")
	private Integer  alarmY; 
	
	/**
	 * ALARM_R【提醒时间区间】 红色预警
	 */
	@Column(name = "ALARM_R")
	private Integer  alarmR;
	
	/**
	 * INS_TIME INS_TIME 
	 */
	@Column(name = "INS_TIME")
	private Date  insTime;
	/**
	 * EDIT_USERCODE EDIT_USERCODE 
	 */
	@Column(name = "EDIT_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  editUsercode;
	/**
	 * EDIT_TIME EDIT_TIME 
	 */
	@Column(name = "EDIT_TIME")
	private Date  editTime;
	/**
	 * DEL_USERCODE DEL_USERCODE 
	 */
	@Column(name = "DEL_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  delUsercode;
	/**
	 * DEL_TIME DEL_TIME 
	 */
	@Column(name = "DEL_TIME")
	private Date  delTime;

	// Constructors
	/** default constructor */
	public JddtDtjktxlog() {
	}
	/** minimal constructor */
	public JddtDtjktxlog(
		String recId		
		) {
	
	
		this.recId = recId;		
			
	}

/** full constructor */
	public JddtDtjktxlog(
	 String recId		
	,String  airId,String  jksxId,String  jcStatus,String  clStatus,Date  dqDate,Long  zdtxTime,Date  sctxDate,Date  zjtxDate,Long  rgtxTime,Date  rgtxDate,Long  syday,String  txType,String  dataValid,String  insUsercode,Date  insTime,String  editUsercode,Date  editTime,String  delUsercode,Date  delTime,Integer alarmY,Integer alarmR) {
	
	
		this.recId = recId;		
	
		this.airId= airId;
		this.jksxId= jksxId;
		this.jcStatus= jcStatus;
		this.clStatus= clStatus;
		this.dqDate= dqDate;
		this.zdtxTime= zdtxTime;
		this.sctxDate= sctxDate;
		this.zjtxDate= zjtxDate;
		this.rgtxTime= rgtxTime;
		this.rgtxDate= rgtxDate;
		this.syday= syday;
		this.txType= txType;
		this.dataValid= dataValid;
		this.insUsercode= insUsercode;
		this.insTime= insTime;
		this.editUsercode= editUsercode;
		this.editTime= editTime;
		this.delUsercode= delUsercode;
		this.delTime= delTime;		
		this.alarmR=alarmR;
		this.alarmY=alarmY;
	}
	

  
	public String getRecId() {
		return this.recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	// Property accessors
  
	public String getAirId() {
		return this.airId;
	}
	
	public void setAirId(String airId) {
		this.airId = airId;
	}
  
	public String getJksxId() {
		return this.jksxId;
	}
	
	public void setJksxId(String jksxId) {
		this.jksxId = jksxId;
	}
  
	public String getJcStatus() {
		return this.jcStatus;
	}
	
	public void setJcStatus(String jcStatus) {
		this.jcStatus = jcStatus;
	}
  
	public String getClStatus() {
		return this.clStatus;
	}
	
	public void setClStatus(String clStatus) {
		this.clStatus = clStatus;
	}
  
	public Date getDqDate() {
		return this.dqDate;
	}
	
	public void setDqDate(Date dqDate) {
		this.dqDate = dqDate;
	}
  
	public Long getZdtxTime() {
		return this.zdtxTime;
	}
	
	public void setZdtxTime(Long zdtxTime) {
		this.zdtxTime = zdtxTime;
	}
  
	public Date getSctxDate() {
		return this.sctxDate;
	}
	
	public void setSctxDate(Date sctxDate) {
		this.sctxDate = sctxDate;
	}
  
	public Date getZjtxDate() {
		return this.zjtxDate;
	}
	
	public void setZjtxDate(Date zjtxDate) {
		this.zjtxDate = zjtxDate;
	}
  
	public Long getRgtxTime() {
		return this.rgtxTime;
	}
	
	public void setRgtxTime(Long rgtxTime) {
		this.rgtxTime = rgtxTime;
	}
  
	public Date getRgtxDate() {
		return this.rgtxDate;
	}
	
	public void setRgtxDate(Date rgtxDate) {
		this.rgtxDate = rgtxDate;
	}
  
	public Long getSyday() {
		return this.syday;
	}
	
	public void setSyday(Long syday) {
		this.syday = syday;
	}
  
	public String getTxType() {
		return this.txType;
	}
	
	public void setTxType(String txType) {
		this.txType = txType;
	}
  
	public String getDataValid() {
		return this.dataValid;
	}
	
	public void setDataValid(String dataValid) {
		this.dataValid = dataValid;
	}
  
	public String getInsUsercode() {
		return this.insUsercode;
	}
	
	public void setInsUsercode(String insUsercode) {
		this.insUsercode = insUsercode;
	}
  
	public Date getInsTime() {
		return this.insTime;
	}
	
	public void setInsTime(Date insTime) {
		this.insTime = insTime;
	}
  
	public String getEditUsercode() {
		return this.editUsercode;
	}
	
	public void setEditUsercode(String editUsercode) {
		this.editUsercode = editUsercode;
	}
  
	public Date getEditTime() {
		return this.editTime;
	}
	
	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}
  
	public String getDelUsercode() {
		return this.delUsercode;
	}
	
	public void setDelUsercode(String delUsercode) {
		this.delUsercode = delUsercode;
	}
  
	public Date getDelTime() {
		return this.delTime;
	}
	
	public void setDelTime(Date delTime) {
		this.delTime = delTime;
	}



	public Integer getAlarmY() {
		return alarmY;
	}
	public void setAlarmY(Integer alarmY) {
		this.alarmY = alarmY;
	}
	public Integer getAlarmR() {
		return alarmR;
	}
	public void setAlarmR(Integer alarmR) {
		this.alarmR = alarmR;
	}
	public JddtDtjktxlog copy(JddtDtjktxlog other){
  
		this.setRecId(other.getRecId());
  
		this.airId= other.getAirId();  
		this.jksxId= other.getJksxId();  
		this.jcStatus= other.getJcStatus();  
		this.clStatus= other.getClStatus();  
		this.dqDate= other.getDqDate();  
		this.zdtxTime= other.getZdtxTime();  
		this.sctxDate= other.getSctxDate();  
		this.zjtxDate= other.getZjtxDate();  
		this.rgtxTime= other.getRgtxTime();  
		this.rgtxDate= other.getRgtxDate();  
		this.syday= other.getSyday();  
		this.txType= other.getTxType();  
		this.dataValid= other.getDataValid();  
		this.insUsercode= other.getInsUsercode();  
		this.insTime= other.getInsTime();  
		this.editUsercode= other.getEditUsercode();  
		this.editTime= other.getEditTime();  
		this.delUsercode= other.getDelUsercode();  
		this.delTime= other.getDelTime();
		this.alarmR=other.getAlarmR();
		this.alarmY=other.getAlarmY();
		return this;
	}
	
	public JddtDtjktxlog copyNotNullProperty(JddtDtjktxlog other){
  
	if( other.getRecId() != null){
	this.setRecId(other.getRecId());}
  
		if( other.getAirId() != null){
		this.airId= other.getAirId();}  
		if( other.getJksxId() != null){
		this.jksxId= other.getJksxId();}  
		if( other.getJcStatus() != null){
		this.jcStatus= other.getJcStatus();}  
		if( other.getClStatus() != null){
		this.clStatus= other.getClStatus();}  
		if( other.getDqDate() != null){
		this.dqDate= other.getDqDate();}  
		if( other.getZdtxTime() != null){
		this.zdtxTime= other.getZdtxTime();}  
		if( other.getSctxDate() != null){
		this.sctxDate= other.getSctxDate();}  
		if( other.getZjtxDate() != null){
		this.zjtxDate= other.getZjtxDate();}  
		if( other.getRgtxTime() != null){
		this.rgtxTime= other.getRgtxTime();}  
		if( other.getRgtxDate() != null){
		this.rgtxDate= other.getRgtxDate();}  
		if( other.getSyday() != null){
		this.syday= other.getSyday();}  
		if( other.getTxType() != null){
		this.txType= other.getTxType();}  
		if( other.getDataValid() != null){
		this.dataValid= other.getDataValid();}  
		if( other.getInsUsercode() != null){
		this.insUsercode= other.getInsUsercode();}  
		if( other.getInsTime() != null){
		this.insTime= other.getInsTime();}  
		if( other.getEditUsercode() != null){
		this.editUsercode= other.getEditUsercode();}  
		if( other.getEditTime() != null){
		this.editTime= other.getEditTime();}  
		if( other.getDelUsercode() != null){
		this.delUsercode= other.getDelUsercode();}  
		if( other.getDelTime() != null){
		this.delTime= other.getDelTime();}		
		if( other.getAlarmR() != null){
			this.alarmR= other.getAlarmR();}		
		if( other.getAlarmY() != null){
			this.alarmY= other.getAlarmY();}		
		return this;
	}

	public JddtDtjktxlog clearProperties(){
  
		this.airId= null;  
		this.jksxId= null;  
		this.jcStatus= null;  
		this.clStatus= null;  
		this.dqDate= null;  
		this.zdtxTime= null;  
		this.sctxDate= null;  
		this.zjtxDate= null;  
		this.rgtxTime= null;  
		this.rgtxDate= null;  
		this.syday= null;  
		this.txType= null;  
		this.dataValid= null;  
		this.insUsercode= null;  
		this.insTime= null;  
		this.editUsercode= null;  
		this.editTime= null;  
		this.delUsercode= null;  
		this.delTime= null;

		return this;
	}
}
